var express = require('express');
var router = express.Router();
const mongodb= require('../components/mongo');

const multer = require('multer');
const uploader = multer({dest:'uploads/'});

/* GET home page. */
router.get('/',async function(req, res, next) {
   console.log(req.query.data);
   const result = await mongodb.find("User",{});
   res.json(result);
});


module.exports = router;